"use strict";
const way = require("../utils/way");

/**
 * 绑定配置
 * 
 * @param {app_id: string} 
 * @param {version: string} 
 */
exports.minicomplete = async (cloud,session, app_id,version) => {
  const data = {
    'app_id': app_id,
    'version': version,
  };
  data.session = session;
  console.log("data:", data);
  const results = await way.taobao(cloud, "taobao.miniapp.app.seller.config.complete", data);
  console.log("minicomplete res", results);
  return results;
};
